﻿(function () {
    'use strict';
    var app = angular.module('app');

    app.controller("personShortInfoCtrl", ["$scope", "$routeParams", "personService", function($scope, $routeParams, personService) {
        $scope.personId = $routeParams.personId;
        $scope.loading = true;
        personService.getById($scope.personId).then(function(result) {
            $scope.person = result;
            $scope.loading = false;
        });
        
    }]);

}());
